package com.edu.mapper;

import com.edu.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> selectAllUser();

    int insertUser(User user);

    int increaseBalance(@Param("userId") int userId, @Param("balance") double balance);

    int decreaseBalance(@Param("userId") int userId, @Param("balance") double balance);

    User selectById(int userId);
}
